P4_NAME=FlowSensor
update:
	$(MAKE) -C .. update
run:
	$(SDE)/run_switchd.sh -p $(P4_NAME) 
stop:
	pkill run_switchd || true
connect:
	bfshell -f con_conf.txt
login:
	bfshell
build:
	$(HOME)/p4_build.sh ./$(P4_NAME).p4
	$(MAKE) run
configure:
	$(SDE)/run_p4_tests.sh -t ./ma_conf
query:
	$(SDE)/run_p4_tests.sh -t ./queries
model:
	$(SDE_INSTALL)/bin/veth_setup.sh
	$(SDE_INSTALL)/bin/dma_setup.sh
	$(SDE)/run_tofino_model.sh -p $(P4_NAME)
find:
	sudo lsof -i:8008
test:
	python3 test.py
